package com.ruoyi.supply.domain.base;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author huangxiong
 * @date 2025/06/15 11:26
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class BaseInfoEntity  extends BaseEntity {
    private static final long serialVersionUID = 1L;


    /** id */
    @TableId(type = IdType.ASSIGN_ID)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty("id")
    private Long id;

    /** 描述 */
    @Excel(name = "描述")
    @ApiModelProperty("描述")
    private String description;

    /** 电话 */
    @Excel(name = "电话")
    @ApiModelProperty("电话")
    private String phone;

    /** 地址 */
    @Excel(name = "地址")
    @ApiModelProperty("地址")
    private String address;

    /** 状态;0正常1已下架2待审核3驳回 */
    @Excel(name = "状态;0正常1已下架2待审核3驳回")
    @ApiModelProperty("状态;0正常1已下架2待审核3驳回")
    private String status;

    /** 价格 */
    @Excel(name = "价格")
    @ApiModelProperty("价格")
    private BigDecimal price;

    /** del falg;0存在，2删除 */
    @JsonIgnore
    @TableLogic(value = "0",delval = "2")
    @ApiModelProperty("del falg;0存在，2删除")
    private String delFlag;


    /** 货源/地点 咨询图片信息 */
    @ApiModelProperty("货源/地点 咨询图片")
    @TableField(exist = false)
    private List<String> imgList;

    /** 货源/地点 咨询图片信息 */
    @ApiModelProperty("货源/地点 咨询缩略图片")
    @TableField(exist = false)
    private List<String> miniImgList;

    @TableField(exist = false)
    private String type;
}
